Why are the values not being inserted into the database with the current SQL statement